package com.oamicnet.boot.config.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 指定外部属性文件位置
 */
@Configuration
@PropertySource("classpath:myconfig.properties")
@Data
public class MyConfig {
    @Value("${app.name}")
    private String name;

    @Value("${app.version}")
    private String version;
}
